package com.yanyun.yczyy.api.controller.vo;

import com.yanyun.yczyy.api.entities.TblIOData;
import lombok.Data;

import java.util.Date;

@Data
public class RealVideoView {
    private String resourceName;
    private String ioTime;
    private String url;

    public static RealVideoView empty() {
        RealVideoView view = new RealVideoView();
        view.resourceName = "";
        view.ioTime = "";
        view.url = "";

        return view;
    }
    public static RealVideoView from(TblIOData ioData) {
        RealVideoView view = new RealVideoView();
        view.resourceName = ioData.getResourceName();
        view.ioTime = ioData.getIoTime();
        view.url = "http://172.166.2.20:8000/192.167.29.47/";

        return view;
    }
}
